package cc.shacocloud.mirage.demo.kotlin.controller

import cc.shacocloud.mirage.restful.bind.annotation.GetMapping
import cc.shacocloud.mirage.restful.bind.annotation.RequestMapping
import cc.shacocloud.mirage.restful.bind.annotation.RestController

/**
 * @author 思追(shaco)
 * @date 2023/3/20
 */
@RestController
@RequestMapping("/api/demo")
class DemoController {

    @GetMapping
    suspend fun demo(): Map<String, String> {
        return mapOf("message" to "hello word")
    }

}